/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/**
 * @Title: Publisher.java
 * @Package phoenics.apeak.crawl.service
 * @Description
 * @author phoenics@126com
 * @date 2016-1-30 16:01:30
 * @version V1.0
 */
package phoenics.apeak.crawl.service;

import phoenics.apeak.crawl.Extractor;

// TODO: Auto-generated Javadoc
/**
 * The Interface Publisher.
 *
 * @Description The Interface Publisher.
 */
public interface Publisher  {
	
	/**
 * Publish.发布event时使用这个接口
 *
 * @param extractorClass
 *            在URL内容回来之后处理类内用使用的class
 * @param url
 *            the url
 * @param params
 *            需要额外提供的参数
 * @param repeat
 *            the repeat
 * @Description Publish.
 */
	public  void publish( Class<? extends Extractor> extractorClass,String url,String params,boolean repeat);
	
	/**
 * Publish.
 *
 * @param extractorClass
 *            the extractor class
 * @param url
 *            the url
 * @Description Publish.
 */
	public  void publish( Class<? extends Extractor> extractorClass,String url);
	
	/**
 * Publish.
 *
 * @param extractorClass
 *            the extractor class
 * @param url
 *            the url
 * @param params
 *            the params
 * @Description Publish.
 */
	public  void publish( Class<? extends Extractor> extractorClass,String url,String params);
	
	/**
 * Publish.
 *
 * @param extractorClass
 *            the extractor class
 * @param url
 *            the url
 * @param repeat
 *            the repeat
 * @Description Publish.
 */
	public  void publish( Class<? extends Extractor> extractorClass,String url,boolean repeat) ;
}
